package org.x.user.dto;

import lombok.Data;
import jakarta.validation.constraints.Null;
import jakarta.validation.constraints.NotBlank;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 系统配置入参对象
 *
 * @author 夏包包
 * @date 2025-03-08 13:39:03
 */
@Data
public class ConfigDTO {

    /**
     * 配置ID: 配置ID，必填
     */
    @NotBlank(groups = { DeleteGroup.class, UpdateGroup.class }, message = "配置ID不能为空")
    @Null(groups = { CreateGroup.class }, message = "配置ID必须为空")
    @Schema(description = "配置ID: 配置ID，必填")
    private String configId;

    /**
     * 配置键: 配置键，必填
     */
    @NotBlank(groups = { CreateGroup.class, UpdateGroup.class }, message = "配置键不能为空")
    @Schema(description = "配置键: 配置键，必填")
    private String configKey;

    /**
     * 配置值: 配置值
     */
    @Schema(description = "配置值: 配置值")
    private String configValue;
}
